﻿// dangjufenshu.cpp: 实现文件
//

#include "pch.h"
#include "MFCApplication2.h"
#include "afxdialogex.h"
#include "dangjufenshu.h"


// dangjufenshu 对话框

IMPLEMENT_DYNAMIC(dangjufenshu, CDialogEx)

dangjufenshu::dangjufenshu(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DIALOG1, pParent)
	, Thisc(_T(""))
{

}

dangjufenshu::~dangjufenshu()
{
}

void dangjufenshu::DoDataExchange(CDataExchange* pDX)
{
	FILE* fp;
	int score = 0;
	fopen_s(&fp, "..\\Source\\TEMP.txt", "r");
	fscanf_s(fp, "%d", &score);
	fclose(fp);

	Thisc.Format(_T("%d"), score);
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, TEMP, Thisc);
}


BEGIN_MESSAGE_MAP(dangjufenshu, CDialogEx)
	ON_STN_CLICKED(TEMP, &dangjufenshu::OnStnClickedTemp)
END_MESSAGE_MAP()


// dangjufenshu 消息处理程序


void dangjufenshu::OnStnClickedTemp()
{
	// TODO: 在此添加控件通知处理程序代码
}
